export const formatTimeXiaomi = (obj: Record<string, number[]>) => {
    const result: string[] = [];
  
    // 遍历每一天
    for (const [day, slots] of Object.entries(obj)) {
      // 遍历该天的每个时间段
      slots.forEach((status, index) => {
        if (status === 1) {
          const timeIndex = index * 30;
          const hours = Math.floor(timeIndex / 60);
          const minutes = timeIndex % 60;
          const key = `${day}${String(hours).padStart(2, "0")}${String(minutes).padStart(2, "0")}`;
          result.push(key);
        }
      });
    }
  
    return result.join(",");
  };